package org.sws.infrastructure.persistent.dao;

import cn.bugstack.middleware.db.router.annotation.DBRouter;
import cn.bugstack.middleware.db.router.annotation.DBRouterStrategy;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.sws.infrastructure.persistent.po.UserBehaviorRebateOrder;

import java.util.List;

/**
* @author joyboy
* @description 针对表【user_behavior_rebate_order_000(用户行为返利流水订单表)】的数据库操作Mapper
* @createDate 2025-03-27 10:59:11
*/
@Mapper
@DBRouterStrategy(splitTable = true)
public interface IUserBehaviorRebateOrderDao {

    int insert(UserBehaviorRebateOrder record);

    int insertSelective(UserBehaviorRebateOrder record);

    int updateByPrimaryKeySelective(UserBehaviorRebateOrder record);

    int insertBatch(@Param("userBehaviorRebateOrders") List<UserBehaviorRebateOrder> userBehaviorRebateOrders);

    @DBRouter
    int queryCurrentOrderRecord(UserBehaviorRebateOrder userBehaviorRebateOrder);
}
